//
//  SignRedCollectionReusableView.swift
//  TianTianBiTing
//
//  Created by Gox mac 2 on 2019/3/1.
//  Copyright © 2019 Gox_WallyDiao. All rights reserved.
//

import UIKit

class SignRedCollectionReusableView: UICollectionReusableView {
    var leftLabel = UILabel()
    var rightLabel = UILabel()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setUpUI()
    }
    
    func setUpUI() {
        self.leftLabel.textColor = RGB_Same(53)
        self.leftLabel.font = Font_Medium(14)
        self.leftLabel.frame = FRAME_CGFloat(0, 0, 50, 20)
        self.leftLabel.textAlignment = .left
        self.addSubview(self.leftLabel)
        
        self.rightLabel.textColor = RGB_Same(53)
        self.rightLabel.font = Font_Medium(11)
        self.rightLabel.frame = FRAME_CGFloat(SCREEN_WIDTH - 190, 2.5, 100, 15)
        self.rightLabel.textAlignment = .right
        self.addSubview(self.rightLabel)
   
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    func setLeftLabel(week:Int) {
        switch week {
        case 1:
            self.leftLabel.text = "第一周"
        case 2:
            self.leftLabel.text = "第二周"
        case 3:
            self.leftLabel.text = "第三周"
        case 4:
            self.leftLabel.text = "第四周"
        default:
            self.leftLabel.text = "第N周"
        }
    }
    
    
        
}
